<?php

/**
 * ClassTime
 * @property	int		$id
 * @property    string  $day
 * @property	string	$startTime
 * @property	string	$endTime
 * @property    string  $classId
 * @property	string	$created
 * @property	string	$updated
 */
class ClassTime extends Node {
    public static function option() {
        return array(
            'table' => 'ClassTime',
            'key' => 'id',
            'columns' => array(
                'id' => 'id',
                'day' => 'day',
                'startTime' => 'start_time',
                'endTime' => 'end_time',
                'classId' => 'class_id',
                'created' => 'created',
                'updated' => 'updated',
                'attributeData' => 'attributes',
            ));
    }

    public function showDay() {
        return weekdayMap($this->day);
    }

    public function remove() {
        $this->delete();
    }
}